const express = require('express')
const userRouter = require('./user')
const productRouter = require('./product')
const shoppingRouter = require('./shopping')
const orderRouter = require('./order')
const app = express()
app.listen(3000, () => {
	console.log('服务器启动成功')
})
// 使用中间件将post传参转对象
app.use('/user', userRouter)
app.use('/product', productRouter)
app.use('/shopping', shoppingRouter)
app.use('/order', orderRouter)